fn test01_use_iterator() {
    let v1 = vec![1, 2, 3];
    let v1_iter = v1.iter();
    for val in v1_iter {
        println!("Got: {val}");
    }

    println!();
    let v1_iter = v1.iter();
    for (i, val) in v1_iter.enumerate() {
        println!("Got: {i},{val}");
    }
}
fn main() {
    println!("=================================");
    test01_use_iterator();
    println!("=================================");
}


